package com.furnitur.modules.portal.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.furnitur.core.entity.address.Address;
import com.furnitur.modules.portal.dto.address.AddressDTO;
import java.util.List;

public interface PortalAddressService extends IService<Address> {
    /**
     * 添加收货地址
     */
    Address addAddress(AddressDTO addressDTO);
    
    /**
     * 修改收货地址
     */
    Address updateAddress(Long id, AddressDTO addressDTO);
    
    /**
     * 删除收货地址
     */
    void deleteAddress(Long id);
    
    /**
     * 获取收货地址列表
     */
    List<Address> getAddressList();
    
    /**
     * 获取默认收货地址
     */
    Address getDefaultAddress();
    
    /**
     * 设置默认收货地址
     */
    void setDefaultAddress(Long id);
} 